# data 2019-4-22 17:07

  Pod::Spec.new do |s|
  s.name         = "Commom"
  s.version      = "1.2.0"
  s.summary      = "Commom bage"
  s.description  = "test"
  s.homepage     = "http://EXAMPLE/Commom"
  s.license      = "MIT"
  s.author       = { "山刘" => "liushan@segimail.com" }
  # s.source       = { :path => "/Users/shanliu/Desktop/UhomeModules/Commom-trunk/Commom.podspec"}
  # s.source       = { :svn => "http://192.168.1.11:9000/svn/segi_c/ios/Commom", :tag => "#{s.version}" }  
  # s.source       = { :svn => "http://192.168.1.11:9000/svn/segi_c/ios/Commom"}  
  
  s.source       = { :git => "http://gitlab.uhomecp.com:9200/jingjie/commom.git" }
  
  s.static_framework  =  true
  s.requires_arc = true
  s.platform     = :ios, "8.0"
  s.resource_bundles = {
    'SEGCommom' => ['Commom/Resources/*.*']
  }
  # s.resource = "Commom/Resources/Commom.bundle"


  # 公共头文件 - 只有再 pod 'Commom' 的情况下使用
  s.subspec 'SEGCommonHeader' do|comh|
    comh.source_files  = "Commom/Class/SEGCommonHeader/**/*"
    comh.public_header_files = "Commom/Class/SEGCommonHeader/**/*.h"
    comh.dependency "Commom/SEGLayoutMacro"
    comh.dependency "Commom/SEGServerManager"
    comh.dependency "Commom/SEGTools"
    comh.dependency "Commom/SEGIAnalytics"
    comh.dependency "Commom/ThirdNibs"
    comh.dependency "Commom/SEGColor"
    comh.dependency "Commom/SEGConfig"
  end 

  s.subspec 'SEGConfig' do |config|
    config.source_files  = "Commom/Class/SEGConfig/**/*"
    config.public_header_files = "Commom/Class/SEGConfig/**/*.h"
  end

  # 服务器相关配置
  s.subspec 'SEGServerManager' do|server|
    server.source_files  = "Commom/Class/SEGServerManager/**/*"
    server.public_header_files = "Commom/Class/SEGServerManager/**/*.h"
    server.dependency "CommonMediator" # 外部依赖
    server.dependency "AFNetworking", '4.0.1'   # 网络请求
    server.dependency "Commom/SEGSecurityUtils"
  end

  
  # layout
  s.subspec 'SEGLayoutMacro' do|layout|
    layout.source_files  = "Commom/Class/SEGLayoutMacro/**/*"
    layout.public_header_files = "Commom/Class/SEGLayoutMacro/**/*.h"
  end


  # 颜色组件
  s.subspec 'SEGColor' do|color|
    color.source_files  = "Commom/Class/SEGColor/**/*"
    color.public_header_files = "Commom/Class/SEGColor/**/*.h"
    color.dependency "Commom/ThirdNibs/SEGTheme"
  end


  # 埋点
  s.subspec 'SEGIAnalytics' do|atics|
    atics.source_files  = "Commom/Class/SEGIAnalytics/**/*"
    atics.public_header_files  = "Commom/Class/SEGIAnalytics/**/*.h"

    atics.dependency "Commom/SEGTools/YYBase"
    atics.dependency "Commom/SEGTools/SEGModel"
    atics.dependency "Commom/SEGTools/SEGAspect"
    atics.dependency "Commom/ThirdNibs/FMDB"
    atics.dependency "Commom/SEGServerManager"
  end 


  # 提示框
  s.subspec 'SEGAlertView' do |alter| 
    alter.source_files  = "Commom/Class/SEGAlertView/**/*"
    alter.public_header_files = "Commom/Class/SEGAlertView/**/*.h"
    alter.dependency "Commom/SEGTools/YYBase"
    alter.dependency "Commom/SEGColor"
    alter.dependency "Commom/SEGLayoutMacro"
    alter.dependency "Commom/ThirdNibs/SEGText"
    alter.dependency "Commom/ThirdNibs/SEGonry"
  end


  # 安全改造
  s.subspec 'SEGSecurityUtils' do |su|
    su.source_files  = "Commom/Class/SEGSecurityUtils/**/*"
    su.public_header_files = "Commom/Class/SEGSecurityUtils/**/*.h"
    su.dependency 'Commom/SEGColor'
    su.dependency "Commom/ThirdNibs/SEGonry"
    su.dependency "Commom/SEGLayoutMacro"
    su.dependency "Commom/SEGTools/YYBase"
    su.dependency "Commom/SEGLayoutMacro"
  end


  # 工具总组件
  s.subspec 'SEGTools'do|tool|
    tool.source_files  = "Commom/Class/SEGTools/**/*"
    tool.public_header_files = "Commom/Class/SEGTools/**/*.h"

    # 工具- 模型、json操作
    tool.subspec 'SEGModel'do|tool_m|   
      tool_m.source_files  = "Commom/Class/SEGTools/SEGModel/**/*"
      tool_m.public_header_files = "Commom/Class/SEGTools/SEGModel/**/*.h" 
    end  

    # 工具- 切片
    tool.subspec 'SEGAspect'do|tool_as|   
      tool_as.source_files  = "Commom/Class/SEGTools/SEGAspect/**/*"
      tool_as.public_header_files = "Commom/Class/SEGTools/SEGAspect/**/*.h" 
    end

    # 工具-钥匙串
    tool.subspec 'SEGCKeyChainStore'do|tool_kcs|   
      tool_kcs.source_files  = "Commom/Class/SEGTools/SEGCKeyChainStore/**/*"
      tool_kcs.public_header_files = "Commom/Class/SEGTools/SEGCKeyChainStore/**/*.h" 
    end

    # 工具-分类工具
    tool.subspec 'YYBase'do|tool_yb|   
      tool_yb.source_files  = "Commom/Class/SEGTools/YYBase/**/*"
      tool_yb.public_header_files = "Commom/Class/SEGTools/YYBase/**/*.h" 
      tool_yb.dependency "Commom/ThirdNibs/libextobjc" #内部依赖
      tool_yb.dependency "Commom/SEGColor"
      tool_yb.dependency "Commom/SEGLayoutMacro"
      tool_yb.dependency "Commom/SEGTools/SEGSwizzle"
    end   

    # 工具-Method Swizzle的封装
    tool.subspec 'SEGSwizzle'do|tool_sw|   
      tool_sw.source_files  = "Commom/Class/SEGTools/SEGSwizzle/**/*"
      tool_sw.public_header_files = "Commom/Class/SEGTools/SEGSwizzle/**/*.h" 
    end   

    # 工具-SEGCreateQRCode
    tool.subspec 'SEGCreateQRCode'do|tool_qr|   
      tool_qr.source_files  = "Commom/Class/SEGTools/SEGCreateQRCode/**/*"
      tool_qr.public_header_files = "Commom/Class/SEGTools/SEGCreateQRCode/**/*.h" 
    end   
  end

  # 第三方功能包
  s.subspec 'ThirdNibs' do|tn|
    tn.source_files  = "Commom/Class/ThirdNibs/**/*"
    tn.public_header_files  = "Commom/Class/ThirdNibs/**/*.h"


    # 主题组件(暗黑模式)
    tn.subspec 'SEGTheme' do|theme|
      theme.source_files  = "Commom/Class/ThirdNibs/SEGTheme/**/*"
      theme.public_header_files = "Commom/Class/ThirdNibs/SEGTheme/**/*.h"
      theme.dependency "Commom/ThirdNibs/SDWebImage"
      end

    tn.subspec 'SDWebImage' do |sdwi|
      sdwi.source_files  = "Commom/Class/ThirdNibs/SDWebImage/**/*"
      sdwi.public_header_files  = "Commom/Class/ThirdNibs/SDWebImage/**/*.h"
      sdwi.dependency "Commom/SEGLayoutMacro"
      # sdwi.compiler_flags = 'ENABLE_STRICT_OBJC_MSGSEND=0'
      sdwi.dependency "SDWebImage", "5.8.4"
    end

    tn.subspec 'SEGonry' do |msy|
      msy.source_files  = "Commom/Class/ThirdNibs/SEGonry/**/*"
      msy.public_header_files  = "Commom/Class/ThirdNibs/SEGonry/**/*.h"
      msy.dependency "Commom/SEGLayoutMacro"
      msy.dependency "Masonry", "1.1.0"

    end

    tn.subspec 'SEGText' do |text|
      text.source_files  = "Commom/Class/ThirdNibs/SEGText/**/*"
      text.public_header_files  = "Commom/Class/ThirdNibs/SEGText/**/*.h"
      text.dependency "Commom/SEGColor"
    end

    tn.subspec 'FMDB' do |fb|
      fb.source_files  = "Commom/Class/ThirdNibs/fmdb/**/*"
      fb.public_header_files  = "Commom/Class/ThirdNibs/fmdb/**/*.h"
      fb.dependency "FMDB", "2.7.5"
    end

    # objc语言扩展库 给协议添加默认实现等
    tn.subspec 'libextobjc' do |fb|
      fb.source_files  = "Commom/Class/ThirdNibs/libextobjc/**/*"
      fb.public_header_files  = "Commom/Class/ThirdNibs/libextobjc/**/*.h"
    end

    # 图片浏览工具
    tn.subspec 'YYImage' do |yyi|
      yyi.source_files  = "Commom/Class/ThirdNibs/YYImage/**/*"
      yyi.public_header_files  = "Commom/Class/ThirdNibs/YYImage/**/*.h"
      yyi.dependency "Commom/SEGTools/YYBase"
      yyi.dependency "Commom/ThirdNibs/SEGText"
    end
  end 

end



# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGInterfaceManager' --spec-sources='https://gitee.com/samcoding/SMSpecs.git,https://github.com/CocoaPods/Specs'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGWeb' --spec-sources='https://gitee.com/samcoding/SMSpecs.git,https://github.com/CocoaPods/Specs'

# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGServerManager'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGInterfaceManager'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGInterfaceManager/SEGLoginSource'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps  --subspecs='SEGWeb'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGMediator'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGMediator,SEGPlatform,SEGColor'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGMediator,SEGPlatform,SEGColor,SEGLayoutMacro'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGMediator,SEGPlatform,SEGColor,SEGLayoutMacro,SEGTools/SEGCKeyChainStore'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGMediator,SEGPlatform,SEGColor,SEGLayoutMacro,SEGTools/SEGCKeyChainStore,SEGTools/YYBase,SEGTools/SEGModel'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps --subspecs='SEGMediator,SEGPlatform,SEGColor,SEGLayoutMacro,SEGTools/SEGCKeyChainStore,SEGTools/YYBase,SEGTools/SEGModel,SEGServerManager,SEGInterfaceManager/SEGLoginSource,SEGInterfaceManager/SEGProfileSource,SEGInterfaceManager/SEGMultipartfileuploadSource'
# pod package Commom.podspec --force --embedded --no-mangle --exclude-deps  --subspecs='SEGPhotoLibrary'


# cd /Users/shanliu/Desktop/MediatorCreate/Common/trunk/
# pod lib lint --allow-warnings --verbose
# pod repo push SMSpecs Commom.podspec --allow-warnings
# pod repo-svn push SVNSpecs Commom.podspec





# pod spec lint --sources='https://github.com/CocoaPods/Specs.git,http://gitlab.uhomecp.com:9200/jingjie/segpodrepo.git' --no-clean --verbose --skip-import-validation --fail-fast --use-libraries  --use-libraries --allow-warnings
# pod repo push segrepo  SEGCommunitySocial.podspec --allow-warnings --use-libraries --sources='https://github.com/CocoaPods/Specs.git,http://gitlab.uhomecp.com:9200/jingjie/segpodrepo.git' --skip-tests --verbose --skip-import-validation  




